Watching Transactions
-
A class that allows you to watch a transaction for events and block confirmations.
See morefirstly { web3.sendTransaction(transaction: transaction) }.done { transactionHash in let watcher = TransactionWatcher(hash: transactionHash, web3: web3) watcher.expectedConfirmations = 3 watcher.delegate = self self.transactionWatcher = watcher }
Declaration
Swift
public class TransactionWatcher
-
A class that will receive updates about a transaction.
See moreDeclaration
Swift
public protocol TransactionWatcherDelegate : AnyObject